<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:if test="${sistema.usuario != null}">
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <html>
        <head>
            <jsp:include page = "../metadatos_importaciones.jsp" flush = "True" />
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>ADMINISTRADOR DE ALUMNOS</title>
        </head>
        <body>
            <jsp:include page = "../menu.jsp" flush = "True" />

            <div class="large-12 ">
                <div class="panel">
                    <h3>Administrador de Alumnos</h3>
                    <input type="button" value="Nuevo Alumno" class="small button" onclick="window.location='./ControlEscolar?funcion=nuevoAlumno' "/>
                    <table width="100%">
                        <thead>
                            <tr>
                                <!--                                <th>ID</th>-->
                                <th>Nombre</th>
                                <th>Apellido Paterno</th>
                                <th>Apellido Materno</th>
                                <th width="10%">Fecha Nacimiento</th>
                                <th>Tutor</th>
                                <th width="5%">Grado</th>
                                <th width="5%">Grupo</th>
                                <th>Direccion</th>
                                <th>Telefono</th>
                                <th width="10%">Matricula</th>
                                <th>Info</th>
                                <th>Ver/Editar</th>
                                <th>Academico</th>
                            </tr>
                        </thead>
                        <tbody>
                            <c:forEach items="${sessionEscuela.VAlumnos}" var="x">
                                <tr>
<!--                                    <td><c:out value="${x.id}"/></td>-->
                                    <td><c:out value="${x.nombre}"/></td>
                                    <td><c:out value="${x.appat}"/></td>
                                    <td><c:out value="${x.apmat}"/></td>
                                    <td><c:out value="${x.fenac}"/></td>
                                    <td><c:out value="${x.nombreTutor}"/></td>
                                    <td><c:out value="${x.grado}"/></td>
                                    <td><c:out value="${x.grupo}"/></td>
                                    <td><c:out value="${x.direccion}"/></td>
                                    <td><c:out value="${x.telefono}"/></td>
                                    <td><c:out value="${x.matricula}"/></td>
                                    <td><c:out value="${x.info}"/></td>
                                    <td><div align="center"><i class="step fi-magnifying-glass size-36" onclick="window.location='./ControlEscolar?funcion=alumnoEditar&idAlumno=<c:out value="${x.id}"/>'"></i></div></td>
                                    <td><div align="center"><i class="step fi-graph-trend size-36" onclick="window.location='./ControlEscolar?funcion=consultaCalificaciones&idAlumno=<c:out value="${x.id}"/>'"></i></div></td>
                                </tr>
                            </c:forEach>
                        </tbody>
                    </table>
                </div>
            </div>
        </body>
    </html>
    <%--<jsp:include page = "../piePagina.jsp" flush = "True" />--%>
</c:if>
<c:if test="${sistema.usuario == null}">
    <jsp:include page = "../ingresaSesionAviso.jsp" flush = "True" />
</c:if>